package com.lwz.observe;

public class TestObserve {

	public static void main(String[] args) {
		Observer first = new ConcreteObserve("obs first");
		Observer second = new ConcreteObserve("obs second");
		Subject subject = new ConcreteSubject();
		subject.addObserver(first);
		subject.addObserver(second);
		subject.notifyAllObserver();
	}

}
